package com.baomidou;

/**
 * 定义常量
 *
 * @author YangHu, tangguo
 * @since 2016/8/31
 */
public interface Constants {
    // 目录配置
    String PACKAGE_ENTITY = "entity";
    String PACKAGE_MAPPER = "mapper";
    String PACKAGE_SERVICE = "service";
    String PACKAGE_SERVICE_IMPL = "service.impl";
    String PACKAGE_CONTROLLER = "controller";

    // 文件名配置
    String FILENAME_ENTITY = "%s";
    String FILENAME_SERVICE = "%sService";
    String FILENAME_SERVICE_IMPL = "%sServiceImpl";
    String FILENAME_MAPPER = "%sMapper";
    String FILENAME_XML = "%s";
    String FILENAME_CONTROLLER = "%sController";

    // 模板位置配置
    String TEMPLATE_ENTITY = "/template/entity.java.vm";
    String TEMPLATE_MAPPER = "/template/mapper.java.vm";
    String TEMPLATE_XML = "/template/mapper.xml.vm";
    String TEMPLATE_SERVICE = "/template/service.java.vm";
    String TEMPLATE_SERVICE_IMPL = "/template/serviceImpl.java.vm";
    String TEMPLATE_CONTROLLER = "/template/controller.java.vm";

    String DEFAULT_JAVA_OUTPUT_DIR = "src/main/java";
    String DEFAULT_XML_OUTPUT_DIR = "src/main/resources/mapper";

}
